package com.lyeducation.entities.course.middle;

import com.lyeducation.entities.base.BaseTreeEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户对课程评论
 */
@Entity
@Table(name = "course_user_comment")
public class CourseUserCommentEntity extends BaseTreeEntity {
    private String userId;
    private String courseId;
    private String comment;


    @Id
    @Column(name = "userId", nullable = false, length = 18)
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Id
    @Column(name = "courseId", nullable = false, length = 18)
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
